package com.dragon.codefx.model;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 代码生成模板配置类
 * @author lsc
 * @since 2024/3/11
 */
@Data
@AllArgsConstructor
public class GenerateTemplate {
    private String path;
    private String label;
    private String template;
    private String module;
    private String suffix;

    public Map<String, String> toMap() {
        Map<String, String> map = new HashMap<>();
        map.put("path", this.path);
        map.put("label", this.label);
        map.put("template", this.template);
        map.put("module", this.module);
        map.put("class", this.suffix);
        return map;
    }
} 